package com.yex.dao.otc;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yex.entity.otc.OtcDayAmount;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 * 每日交易金额 Mapper 接口
 * </p>
 *
 * @author LittleLiu
 * @since 2018-07-03
 */
public interface OtcDayAmountDao extends BaseMapper<OtcDayAmount> {

    OtcDayAmount findOtcDayAmount(@Param("userId") Integer userId);

    Map<String,Object> findOtcDayAmountMap(@Param("userId") Integer userId);

    Integer saveOtcDayAmountPush(@Param("userId") Integer userId);

    Integer updateOtcDayAmountPush(@Param("userId") Integer userId);

    Integer saveOtcDayAmount(@Param("userId") Integer userId, @Param("amount") BigDecimal amount);

    Integer updateOtcDayAmount(@Param("userId") Integer userId, @Param("amount") BigDecimal amount);

    Integer updateOtcDayAmountZERO(@Param("userId") Integer userId, @Param("amount") BigDecimal amount);
}
